<?php 
/*
Template Name: Toolkit Plugin 
*/
global $TanTanConfig;
get_header();
the_post();
$downloadLink = get_post_meta($post->ID, 'link-download', true);
$googleProjectCode = get_post_meta($post->ID, 'google-project', true);
$rss['issues'] = get_post_meta($post->ID, 'rss-issues', true);
$supportGroupLink = get_post_meta($post->ID, 'support-group', true);
$version = get_post_meta($post->ID, 'version', true);
?>
<div class="tt-entry">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php if ('open' == $post->comment_status) : ?><a href="<?php comments_link() ?>" class="num-comments"><?php comments_number('No Comments', '1 Comment', '% Comments', '', ''); ?></a><?php endif; ?>
    <div class="tt-contents">
    <div class="tt-rss-box">
        <p><a href="<?php echo $downloadLink;?>" class="download">Download the plugin</a><br />
            Current Version: <strong><?php echo $version;?></strong><br />
            Plugin Downloads: <img src="http://joetan.org/gprojects/tantan_downloadCount.php?project=<?php echo $googleProjectCode; ?>&amp;offset=<?php /*echo get_post_meta($post->ID, 'downloads-offset', true);*/?>" align="middle" alt=""/><br />
            <small><a href="/code/backup/">download mirror</a> | <a href="http://code.google.com/p/<?php echo $googleProjectCode;?>/downloads/list">past versions</a></small>
            
        </p>
        <p><a href="http://feeds.feedburner.com/TanTanToolkit" class="feed">Get notified of when updates are made to this plugin.</a></p>
        <p>Other Related Links: <br />
            <a href="http://code.google.com/p/<?php echo $googleProjectCode;?>/">Project Page</a>,
            <a href="<?php echo $supportGroupLink;?>">Support Group</a>
        </p>
    </div>    
    
    <?php the_content(); ?>
    
    <p><a href="<?php echo $downloadLink;?>" class="download">Download the plugin</a></p>

    
    <div class="box-important">
    <p><strong>Support:</strong><br />
    If you are having problems setting up or customizing this plugin, please 
    <a href="<?php echo $supportGroupLink;?>">visit the support group</a> for help.
    Someone may have already posted a solution to your problem!
    </p>
    <p><strong>More Documentation:</strong> 
        <a href="http://code.google.com/p/<?php echo $googleProjectCode;?>/wiki/ChangeLog">Modification History</a>,
        <a href="http://code.google.com/p/<?php echo $googleProjectCode;?>/wiki/KnownIssues">Known Issues and Bugs</a>
    </p>
    <p>
    <strong>Bug Reports:</strong><br />
    If you find a bug or have a feature request for this plugin, please post them to <a href="http://code.google.com/p/<?php echo $googleProjectCode;?>/issues/list">this Google Project page</a>.
    </p>
    <p>
        <strong>Developers:</strong><br />
        Browse this plugin's source code at the <a href="http://code.google.com/p/<?php echo $googleProjectCode;?>/source">Subversion repository</a>. 
    </p>
    </div>
    <p>
    <strong>Want more WordPress goodness?</strong>
    Check out some of my other <a href="http://tantannoodles.com/toolkit/">plugins and scripts &gt;</a>
    </p>
    </div>
    
    
    
    <?php if ('open' == $post->comment_status):?>
    <div class="tt-meta"><div class="links">
        <a href="<?php comments_link() ?>" class="comments"><?php comments_number('No Comments', '1 Comment', '% Comments', '', 'Comments off'); ?></a>
        <a href="<?php the_permalink() ?>" class="permalink" title="Permanent link to this post">Permalink</a>
        <?php if ('open' == $post->ping_status): ?>
        <a href="<?php trackback_url(display); ?>" class="trackback" title="Trackback URL">Leave a trackback</a> 
        <?php endif;?>
        <a href="feed/" class="comments-rss" title="RSS feed for comments">Comments RSS</a>
    </div></div>
    <?php endif ?>
</div>
<?php
if (!$_GET['comments']) {
    $TanTanConfig['MaxComments'] = 20;
}
comments_template();
?>
<div class="box-important">
    <p><strong>Support:</strong><br />
    If you are having problems setting up or customizing this plugin, please 
    <a href="<?php echo $supportGroupLink;?>">visit the support group</a> for help. 
    Someone may have already posted a solution to your problem! 
    </p></div>

<?php 
get_footer(); 
?>
